﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using University.Workshop.Presenters.Kardex.Show;

namespace University.Workshop.Presentation.Kardex.Show
{
    /// <summary>
    /// Interaction logic for PageSecondStepShowKardex.xaml
    /// </summary>
    public partial class PageSecondStepShowKardex : Page,ISecondStepForShowKardex
    {
        private PresenterSecondStepForShowKardex pSecondStepForShowKardex;
        private PresenterShowKardex pInternal;
        public PageSecondStepShowKardex(PresenterShowKardex pExternal){
            InitializeComponent();
            pInternal = pExternal;
            pSecondStepForShowKardex = new PresenterSecondStepForShowKardex((this));
            App.Current.MainWindow.Title = "UIMostrarKardex";
        }


        public string PersonId
        {
            set { PartnerIdTxt.Content = value; }
        }

        public string SquareId
        {
            set { SquareLbl.Content = value; }
        }

        public string AllotmentName
        {
            set { AllotmentLbl.Content = value; }
        }

        public void GoBackPage()
        {
        }

        public void GoNextPage()
        {
            pInternal.GoStepOne();
        }


        public Model.Kardex KardexToShow { get; set; }

        public void Update()
        {
            pSecondStepForShowKardex.UpdateDataKardex();
        }
    }
}
